Telegram Group & Telegram Channel
🐥 Задача по Python #33

Описание

Напишите функцию scramble(str1, str2), которая возвращает True, если часть символов str1 может быть переставлена так, чтобы соответствовать str2, в противном случае возвращает False.

Примечания

Будут использоваться только строчные буквы (a-z). Пунктуация и цифры не используются.
Необходимо учитывать производительность.

Примеры
scramble('rkqodlw', 'world') # True
scramble('katas', 'steak') # False

Свой вариант решения в комментарии 💭
Кодом делиться через pastebin.org или repl.it.

#задачи



tg-me.com/pythonturboru/522
Create:
Last Update:

🐥 Задача по Python #33

Описание

Напишите функцию scramble(str1, str2), которая возвращает True, если часть символов str1 может быть переставлена так, чтобы соответствовать str2, в противном случае возвращает False.

Примечания

Будут использоваться только строчные буквы (a-z). Пунктуация и цифры не используются.
Необходимо учитывать производительность.

Примеры

scramble('rkqodlw', 'world') # True
scramble('katas', 'steak') # False

Свой вариант решения в комментарии 💭
Кодом делиться через pastebin.org или repl.it.

#задачи

BY Python Turbo. Уютное сообщество Python разработчиков.




Share with your friend now:
tg-me.com/pythonturboru/522

View MORE
Open in Telegram


Python Turbo Уютное сообщество Python разработчиков Telegram | DID YOU KNOW?

Date: |

Telegram and Signal Havens for Right-Wing Extremists

Since the violent storming of Capitol Hill and subsequent ban of former U.S. President Donald Trump from Facebook and Twitter, the removal of Parler from Amazon’s servers, and the de-platforming of incendiary right-wing content, messaging services Telegram and Signal have seen a deluge of new users. In January alone, Telegram reported 90 million new accounts. Its founder, Pavel Durov, described this as “the largest digital migration in human history.” Signal reportedly doubled its user base to 40 million people and became the most downloaded app in 70 countries. The two services rely on encryption to protect the privacy of user communication, which has made them popular with protesters seeking to conceal their identities against repressive governments in places like Belarus, Hong Kong, and Iran. But the same encryption technology has also made them a favored communication tool for criminals and terrorist groups, including al Qaeda and the Islamic State.

In many cases, the content resembled that of the marketplaces found on the dark web, a group of hidden websites that are popular among hackers and accessed using specific anonymising software.“We have recently been witnessing a 100 per cent-plus rise in Telegram usage by cybercriminals,” said Tal Samra, cyber threat analyst at Cyberint.The rise in nefarious activity comes as users flocked to the encrypted chat app earlier this year after changes to the privacy policy of Facebook-owned rival WhatsApp prompted many to seek out alternatives.Python Turbo Уютное сообщество Python разработчиков from id


Telegram Python Turbo. Уютное сообщество Python разработчиков.
FROM USA